package com.xuecheng.order.agent;

import com.xuecheng.api.learning.model.dto.CourseRecordDTO;
import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * <p></p>
 *
 * @Description:
 */
@FeignClient(value = XcFeignServiceNameList.XC_LEARNING_SERVICE)
public interface LearningApiAgent {

    String PREFIX_FLAG = "/learning/l/";

    @PostMapping(PREFIX_FLAG+"course-record/paid/{username}/{coursePubId}")
    RestResponse<CourseRecordDTO> createCourseRecord4S(@PathVariable String username, @PathVariable Long coursePubId);

}
